package com.example.medicalrecord.AggregationModule.doctor.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DoctorQuery {
    @ApiModelProperty(value = "患者id")
   private Long patientId;
    @ApiModelProperty(value = "就诊病情")
    private String illness;
    @ApiModelProperty(value = "患者描述")
    private String patientDescription;
    @ApiModelProperty(value = "病情详细")
    private String description;
    @ApiModelProperty(value = "就诊时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date treatTime;
    @ApiModelProperty(value = "医嘱")
    private String orders;
    @ApiModelProperty(value = "医生名字")
    private String physician;
    @ApiModelProperty(value = "开具药品名")
    private String sicknessMedicine;
    @ApiModelProperty(value = "住院时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inpatientTime;
    @ApiModelProperty(value = "出院时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dischargeTime;
    @ApiModelProperty(value = "住院状态1住院 0未住院")
    private String inpatientStatus;
   /* `id`                  bigint auto_increment NOT NULL COMMENT '病史id',
            `patient_id`          bigint                NULL COMMENT '患者id',
            `illness`             varchar(100)          NULL COMMENT '就诊病情',
            `patient_description` text                  NULL COMMENT '患者描述',
            `description`         text                  NULL COMMENT '病情详细',
            `treat_time`          timestamp             NULL COMMENT '就诊时间',
            `orders`              varchar(100)          NULL COMMENT '医嘱',
            `physician`           varchar(20)           NULL COMMENT '医生名字',
            `sickness_medicine`   text                  NULL COMMENT '开具药品名',
            `inpatient_time`      datetime              NULL COMMENT '住院时间',
            `discharge_time`      datetime              NULL COMMENT '出院时间',
            `inpatient_status`    varchar(10)           NULL COMMENT '住院状态1住院 0未住院',
            `create_time`         datetime              NULL COMMENT '创建时间',
            `update_time`         datetime              NULL COMMENT '修改时间',*/
}
